<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bienvenida</title>
</head>
<body>
<h1>Bienvenido <sec:authentication property="principal.username" /></h1>

<sec:authorize access="hasRole('ROLE_ADMIN')">
	Soy Administrador<br />
</sec:authorize>

<sec:authorize access="hasIpAddress('127.0.0.1')">
	Soy localhost<br />
</sec:authorize>

<a href="usuario/registro.htm">Registrar Usuario</a><br />	
<a href="usuario/lista.htm">Lista de Usuarios</a><br />
<a href="j_spring_security_logout">Logout</a><br />

</body>
</html>